package com.ny.service.impl;

import com.ny.dao.ProductDao;
import com.ny.dao.impl.ProductDaoImpl;
import com.ny.entity.Product;
import com.ny.service.ProductService;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImpl implements ProductService {
    private ProductDao productDao = new ProductDaoImpl();
    @Override
    public List<Product> findAllProduct() throws SQLException, ClassNotFoundException {
        return productDao.findAllProduct();
    }

    @Override
    public int insertProduct(Product newProduct) {
        return 0;
    }

    @Override
    public int updateProduct(Product updatedProduct) {
        return 0;
    }

    @Override
    public int deleteProduct(int deleteId) {
        return 0;
    }
}
